<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport"
		content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<link rel="stylesheet" href="__CSS__/ex/common.css">
	<link rel="stylesheet" href="__CSS__/ex/login.css">
	<title>WESTGOLDB.EXC</title>
    <script src="__JS__/ios-web-app.js"></script>
</head>

<body style="padding-top: 38px">
	<div class="login">
		<div class="header">
			<div class="header_left"><a href="{$_SERVER['HTTP_REFERER']}"><img src="__IMG__/ex/back.png" alt=""></a></div>
			<p>恢复钱包</p>
			<div class="header_right"></div>
		</div>
		<div class="loginform recover">
            <p class="recover_p1">恢复助记词钱包</p>
            <p class="recover_p2">请输入助记词以恢复钱包，每个词之间以空格间断。</p>
            <textarea class="recover_textarea" placeholder="请输入助记词" name="recover" id="recover"></textarea>
			<div class="btn login_btn lsub">下一步</div>
		</div>
	</div>

	<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>

</body>
<script>
	$(".lsub").click(function () {
		$memory=$("#recover").val();
		$.ajax({
			type:"post",
			dataType:"json",
			url:"{:U('check_memory')}",
			data:{
				memory:$memory,
			},
			success:function (data) {
				if(data.code>0){
				    $id=data.msg;
				    // alert($id);return false;
				    window.location.href="{:U('find_password')}?id="+$id;
				}else {
				    alert(data.msg);
				}
            }
		})
		return false;
    })
</script>
</html>